<%--
  Created by IntelliJ IDEA.
  User: dhd
  Date: 2024/9/2
  Time: 10:48
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <style>
        @import url('bootstrap/css/bootstrap.css');
    </style>
</head>
<body>
    <h2>Request作用域:<%=pageContext.getRequest().getAttribute("hello")%></h2>
    <h2>Session作用域:<%=pageContext.getSession().getAttribute("hello")%></h2>
    <h2>${hello}</h2>
    <a href="hello.action?name=张三">请单击我</a>

    <form action="user.action" method="post">
        <div class="form-group">
            <label for="userName">用户名</label>
            <input type="text" class="form-control" id="userName" name="userName"
                   placeholder="请输入用户名">
        </div>
        <div class="form-group">
            <label for="userPhone">电话</label>
            <input type="text" class="form-control" id="userPhone" name="userPhone"
                   placeholder="请输入电话号码">
        </div>
        <div class="form-group">
            <label>爱好</label>
            <input type="checkbox" class="form-control" name="hobby" value="篮球" checked>篮球
            <input type="checkbox" class="form-control" name="hobby" value="羽毛球">羽毛球
            <input type="checkbox" class="form-control" name="hobby" value="rap">rap
        </div>
        <button type="submit" class="btn btn-primary">Submit</button>
    </form>

    <form action="goods.action" method="post" enctype="multipart/form-data">
        <label>商品名称</label><input type="text" name="goodsName"><br>
        <label>商品单价</label><input type="number" name="price"><br>
        <label>请选择图片</label><input type="file" name="goodsImage"><br>
        <button type="shangchuan">上传</button>
    </form>
</body>
</html>
